<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 18%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageContent">
    <div class="form">
        <form data-toggle="validate" action="{:U('Model/add')}" >
            <dl>
                <dt>模型名称：</dt>
                <dd>
                    <input type="text" name="name" class="input-nm"  data-rule="required" data-tip="请填写模型名称" data-ok="OK"/>
                </dd>
            </dl>
            <dl>
                <dt>附加表：</dt>
                <dd>
                    <input type="text" name="tablename" class="input-nm"  data-rule="required" data-tip="表名" data-ok="OK"/>
                    (表名小写，去掉默认表前缀)
                </dd>
            </dl>
            <dl>
                <dt>列表模板：</dt>
                <dd>
                    <select name="template_list" data-toggle="selectpicker" data-width="200">
                        <foreach name='styleListList' item='v'>
                            <option value="{$v}">{$v}</option>
                        </foreach>
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>内容页模板：</dt>
                <dd>
                    <select name="template_show" data-toggle="selectpicker" data-width="200">
                        <foreach name='styleShowList' item='v'>
                            <option value="{$v}">{$v}</option>
                        </foreach>
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>描述：</dt>
                <dd>
                    <textarea name="description" class="tarea_default" data-toggle="autoheight" cols="30"></textarea>
                </dd>
            </dl>
            <dl>
                <dt>启用：</dt>
                <dd>
                    <input type="radio" name="status" value="1" checked="checked"   data-toggle="icheck" data-label="启用"/>
                    <input type="radio" name="status" value="0"     data-toggle="icheck" data-label="禁用"/>
                </dd>
            </dl>
            <dl>
                <dt>排序：</dt>
                <dd>
                    <input type="text" name="sort" class="input-nm" value="1" />
                </dd>
            </dl>
            
        </form>
    </div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">关闭</button>
        </li>
        <li><button data-icon="save" class="btn btn-default" type="submit">保存</button></li>
    </ul>
</div>